#-*-coding:utf-8-*-
import threading
import sys
import os
count = 0

class testCls(object):

	def __init__(self,x,y):
		super(testCls,self).__init__()
		self._x = x
		self._y = y

	def __str__(self):
		return "x = {} ,y = {}".format(self._x,self._y)


def foo():
	global count
	count += 1

if __name__ == "__main__":
	pass
	# testObj = testCls(5,6)
	# print testObj
	# threads = []
	# for i in xrange(1000):
	# 	t = threading.Thread(target=foo)
	# 	threads.append(t)
	#
	# for t in threads:
	# 	t.start()
	#
	# for t in threads:
	# 	t.join()
	#
	#
	# print count
	# print "refcount  ", sys.getrefcount(count)

	# arr = [5]
	#
	# b = arr
	#
	# print "refcount",sys.getrefcount(arr) # 3次
	#
	# c = b
	# d = b
	# e = b
	# print "refcount", sys.getrefcount(arr) # 6次
	